/*
 * @Description:
 * @Author: zouxm
 * @Date: 2021-05-18 16:37:14
 * @LastEditTime: 2021-05-19 09:50:54
 * @LastEditors: zouxm
 */
//https://juejin.cn/post/6901565843348881416
import typescript from 'rollup-plugin-typescript'
import commonjs from 'rollup-plugin-commonjs'
export default {
    input: 'modules/index.ts',
    output: [
        {
            file: 'lib/bundle.cjs.js',
            format: 'cjs'
        },
        {
            file: 'lib/bundle.esm.js',
            format: 'es'
        }
    ],
    plugins: [
        typescript({
            exclude: 'node_modules/**',
            typescript: require('typescript')
        }),
        commonjs()
    ]
}
